﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Notifications;

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            var m = new NotificationsManager("爱爱", SystemIcons.Information);
            m.ShowBalloonToolTip("消息","啊啊啊啊啊", 10000,ToolTipIcon.Error);
        m.AddContextMenuItem("啊啊啊",button2_Click );  m.AddContextMenuItem("啊啊啊",button23_Click );
        m.NotificationClicked += (ss, ee) => { MessageBox.Show(@"3333");};
        m.NotificationIconClicked += (ss, ee) => { MessageBox.Show(@"444");};
        }

        private void button2_Click(object sender, EventArgs e)
        {
            MessageBox.Show(DateTime.Now.ToString("F"));
        }
        private void button23_Click(object sender, EventArgs e)
        {
            MessageBox.Show(DateTime.Now.ToString("F"));
            
        }
    }
}